/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

/**
 * 
 * @author Manpreet
 */
public class Street {

    private int LaneNum;
    private double prob;

    private void init() {
        LaneNum = 2;
        prob = 0.5;

    }

    /**
     * Returns the Number of Lanes
     * @return
     */
    public int getLaneNum() {
        return LaneNum;
    }

    /**
     * Sets the amount of lanes with the given INTERGER
     * @param LaneNum
     */
    public void setLaneNum(int LaneNum) {
        this.LaneNum = LaneNum;
    }

    /**
     * Gives the Probability of a car Spawning to the lane
     * @return
     */
    public double getProb() {
        return prob;
    }

    /**
     * Set the Probability of a car Spawning to the lane with the given DOUBLE
     * @param prob
     */
    public void setProb(double prob) {
        this.prob = prob;
    }

    /**
     * initializes the default values of this class
     */
    public Street() {
        init();
    }
}
